import Vue from 'vue'

Vue.directive('err', {
  bind(el, binding) {
    el.onerror = function() {
      console.log('我裂开了')
      el.src = require('../assets/common/img.jpeg')
    }
  }
})

Vue.directive('errPlus', {
  bind(el, binding) {
    el.onerror = function() {
      console.log('我裂开了')

      el.src = binding.value
    }
  }
})
